<% var body={%>

<div class="container">
	<div class="row">
		<div class="span12">
			<ul class="breadcrumb">
				<li><a href="${contentPath}">首页</a> <span class="divider">/</span></li>
				<li><a href="${contentPath}/statuslist/1/${STATUS_PAGE_SIZE}">运行</a>
					<span class="divider">/</span></li>
				<li class="active">运行列表</li>
			</ul>
		</div>
	</div>
	<div class="row">
		<div class="span12">
			<form class="form-inline" method="get"
				action="${contentPath}/statuslist/${page}/${pageSize}">
				<span class="muted">题目ID</span><input type="text" name="pid"
					value="${pid}" size="16" class="input-medium" placeholder="id" /><span
					class="muted"> 用户名</span> <input type="text" name="username"
					value="${username}" size="16" class="input-medium"
					placeholder="username" />&nbsp;&nbsp;<input type="submit"
					class="btn btn-primary input-mini" value="查找" />
			</form>
		</div>
	</div>
	<div class="row">
		<div class="span12">
			<div class="pagination">
				<ul pg pg-range="[1,${total},${currentPage},${pageSize},6]"
					pg-top="置顶" pg-pre="上一页" pg-next="下一页">
					<li><a
						href="${contentPath}/statuslist/#{pg-index}/#{pg-pagesize}">#{pg-index}</a>
				</ul>
			</div>
		</div>
		<div class="span12">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr class="text-info">
						<th>运行号</th>
						<th>用户</th>
						<th>题号</th>
						<th>结果</th>
						<th>时间</th>
						<th>内存</th>
						<th>语言</th>
						<th>提交时间</th>
					</tr>
				</thead>
				<tbody>
					<% for(status in statusList){%>
					<tr status-res="${status.result}">
						<td>${status.sid}</td>
						<td class="span3"><a href="${contentPath}/user/userinfo/${status.uid}">${status.username}</a></td>
						<td><a href="${contentPath}/problem/${status.pid}">${status.pid}</a></td>
						<td class="span3"><span status-res="${status.result}"></span></td>
						<td>${status.time}</td>
						<td>${status.memory}</td>
						<td><a href="${contentPath}/status/code/${status.sid}">${languages[status.language]}</a></td>
						<td>${status.submittime,"yyyy-MM-dd hh:mm:ss"}</td>
					</tr>
					<%}%>
				</tbody>
			</table>
		</div>
		<div class="span12">
			<div class="pagination">
				<ul pg pg-range="[1,${total},${currentPage},${pageSize},6]"
					pg-top="置顶" pg-pre="上一页" pg-next="下一页">
					<li><a
						href="${contentPath}/statuslist/#{pg-index}/#{pg-pagesize}">#{pg-index}</a>
				</ul>
			</div>
		</div>
	</div>
</div>
<%}; include("commons/_layout.html",{body:body}){}%>

